package com.example.exp;

import cn.hutool.json.JSONUtil;
import com.google.common.eventbus.SubscriberExceptionContext;
import com.google.common.eventbus.SubscriberExceptionHandler;

/**
 * @dec:
 * @author： ysf
 * @createDate: 2021/5/11 10:31
 **/
public class MySubscriberExceptionHandler implements SubscriberExceptionHandler {
    @Override
    public void handleException(Throwable exception, SubscriberExceptionContext context) {
        System.out.println("exception" + JSONUtil.toJsonStr(exception));
        System.out.println("context" + JSONUtil.toJsonStr(context));

    }
}
